package com.jungle.bfi.metadata.swagger.vo;

import com.jungle.bfi.metadata.swagger.enums.NodeType;

import java.util.ArrayList;
import java.util.List;


public class NodeInfoVo {
    private String nodeId;
    private String nodeName;
    private String nodeValue;
    private NodeType nodeType;

    private List<NodeInfoVo> children = new ArrayList<>();

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getNodeValue() {
        return nodeValue;
    }

    public void setNodeValue(String nodeValue) {
        this.nodeValue = nodeValue;
    }

    public NodeType getNodeType() {
        return nodeType;
    }

    public void setNodeType(NodeType nodeType) {
        this.nodeType = nodeType;
    }

    public List<NodeInfoVo> getChildren() {
        return children;
    }

    public void setChildren(List<NodeInfoVo> children) {
        this.children.addAll(children);
    }

    public void addChildren(NodeInfoVo children) {
        this.children.add(children);
    }
}
